package com.nyist.zk.dao;

import com.nyist.zk.entities.BloodManager;
import com.nyist.zk.entities.Doctor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorDao {

    Doctor getDoctorByIdAndPassword(@Param("d_id") Integer d_id, @Param("d_password") String d_password);

    List<Doctor> findAllDoctor();

    List<Doctor> findDoctorByNameLike(String d_name);

    Doctor findByIdDoctor(Integer d_id);

    void insertDoctor(Doctor Doctor);

    void deleteByIdDoctor(Integer d_id);

    void updateDoctor(Doctor Doctor);



}
